package com.bz.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.bz.model.MenuTree;
import com.bz.service.IMenuService;

@RestController
@RequestMapping(value = "/api/menu")
public class MenuController {

    @Autowired
    private IMenuService menuService;

    @RequestMapping(value = "/list")
    public List<MenuTree> menuTree() {
        return menuService.getMenu();
    }
}
